import request from '@/utils/request'

export default {

  listEmp(current,size,departmentQuery){
    return request({
      url: `/emp/pageQuery/${current}/${size}`,
      method: 'post',
      data: departmentQuery
    })
  },

  deleteEmp(id){
    return request({
      url: `/emp/${id}`,
      method: 'delete',
    })
  },

  save(department){
    return request({
      url: `/emp/save`,
      method: 'post',
      data: department
    })
  },

  deleteBatch(ids){
    return request({
      url: `/emp/deleteBatch`,
      method: 'patch',
      data: ids
    })
  },

  getEmp(){
    return request({
      url: `/emp/`,
      method: 'get'
    })
  },
}
